#pragma once

#include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <time.h>
#include <vector>
using namespace std;

#include "clkXml.h"

struct clkColladaVert
{
	float px, py, pz;
	float nx, ny, nz;
	float tx, ty, tz;
	float bx, by, bz;
	float ux, uy;
};

struct clkColladaMesh
{
	vector<clkColladaVert> m_verts;
};

struct clkColladaScene
{
	vector<clkColladaMesh*> m_meshes;
};

class clkCollada
{
private:
	clkXmlDocument m_doc;
public:
	clkCollada();
	clkCollada(string a_path);
	~clkCollada();

	void openDoc(string a_path);
	void closeDoc();

	bool loadVertices(clkColladaScene* a_scene);
};